package com.fenghongzhang.a18103.mvp.model;

import com.fenghongzhang.a18103.mvp.contract.FoodContract;

import okhttp3.Callback;
import okhttp3.OkHttpClient;
import okhttp3.Request;

public class FoodModel implements FoodContract.IFoodModel {


    @Override
    public void getFoodData(Callback callback) {
        //具体的下载任务
        OkHttpClient client = new OkHttpClient.Builder().build();
        Request build = new Request.Builder().get().url("http://www.qubaobei.com/ios/cf/dish_list.php?stage_id=1&limit=20&page=1").build();
        client.newCall(build).enqueue(callback);

    }

    @Override
    public void destroy() {

    }
}
